<script setup lang="ts">
import {ref} from "vue";

const computer = ref('联想')
const book = ref(5)

defineExpose({computer, book})
</script>

<template>
<h3>子组件2</h3>
  <h4>电脑：{{computer}}</h4>
  <h4>书籍：{{book}}本</h4>
</template>

<style scoped>

</style>